import { createRouter,createWebHistory } from "vue-router";
import Login from '../components/Login.vue';
import Homes from '../components/Homes.vue';
import Content from '../components/Content.vue';
import Background from '../components/Background.vue';
import Table from '../components/Table.vue';
import TableUser from '../components/Tableuser.vue'
import Comments from '../components/Comments.vue'
const router = createRouter({
    history:createWebHistory(),
    routes:[
        {
            path:'/',
            component:Login,
        },
        {
            path:'/homes',
            component:Homes
        },
        {
            path:'/content',
            component:Content
        },
        {
            path:'/background',
            component:Background,
            children:[
                {
                    path:'table',
                    component:Table
                },
                {
                    path:'tableuser',
                    component:TableUser
                },
                {
                    path:'comments',
                    component:Comments
                }
            ]
        }
    ]
})
export default router;
